package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 教材订购管理
 * </p>
 *
 * @author hpiggy
 * @since 2025-01-04
 */
@TableName("book_order")
@ApiModel(value = "BookOrder对象", description = "教材订购管理")
@Data
public class BookOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Integer yearPart;

    private Integer quarterNum;

    @ApiModelProperty("教材类型，1学生用书，2教师用书，对应dict表type为33")
    private Integer bookTextType;

    @ApiModelProperty("1精品课")
    private Integer lessonType;

    @ApiModelProperty("批次,第个学期从1开始递增")
    private Integer batchNum;

    @ApiModelProperty("批次编号，年月日加批次")
    private String batchNo;

    private String batchName;

    @ApiModelProperty("1订购，2下单，3，领取")
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("添加")
    private LocalDateTime createdAt;

    private Long subjectsId;

    private Long classTypeId;

    @ApiModelProperty("书本id")
    private Long bookTextId;

    @TableField(exist = false)
    @ApiModelProperty("学校id")
    private Long schoolId;

    @ApiModelProperty("是否有下单，0未下单，1已下单")
    private Integer isOrderStatus;

    @TableField(exist = false)
    private Integer yearClassId;

    @ApiModelProperty("课次")
    private Integer lessonNum;

    @TableField(exist = false)
    @ApiModelProperty("学校id")
    private String schoolIdStr;

    @TableField(exist = false)
    @ApiModelProperty("年级id")
    private String yearClassIdStr;

    @TableField(exist = false)
    @ApiModelProperty("订购类型：0：1次，1：按课次")
    private Integer subscribeType;

    @TableField(exist = false)
    @ApiModelProperty("提前刷的课次")
    private Integer beforeLessonNum;

}
